package com.dazhi.show.menu.vo;

import com.dazhi.show.menu.dao.Menu;

import java.util.List;

public class MenuVo {
    private Integer id;
    private String name;
    private String code;
    private Integer leval;
    private String path;
    private Integer parentId;
    private List<MenuVo> child;

    public MenuVo() {}

    public MenuVo(Integer id, String name,String code, Integer leval, String path, Integer parentId) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.leval = leval;
        this.path = path;
        this.parentId = parentId;
    }

    public MenuVo(Menu menu) {
        this.id = menu.getId();
        this.name = menu.getName();
        this.code = menu.getCode();
        this.leval = menu.getLeval();
        this.path = menu.getPath();
        this.parentId = menu.getParentId();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLeval() {
        return leval;
    }

    public void setLeval(Integer leval) {
        this.leval = leval;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<MenuVo> getChild() {
        return child;
    }

    public void setChild(List<MenuVo> child) {
        this.child = child;
    }
}
